package protocol

import "errors"

var (
	// ErrNilPacket 数据包是空的
	ErrNilPacket = errors.New("packet is nil")
	//ErrDataTooLarge 数据过大
	ErrDataTooLarge = errors.New("data too large over maxUint32")
	ErrDataIsEmpty  = errors.New("data is empty")
	// ErrBytesNoFit 字节数组不满足packet 条件
	ErrBytesNoFit = errors.New("bytes not fix packet format")

	ErrInvalidHeader    = errors.New("invalid fix head")
	ErrIncompletePacket = errors.New("incomplete packet")
	ErrAuth             = errors.New("auth fail")
)
